package com.file.service.impl;

import com.file.dao.EmployeeDao;
import com.file.entity.Employee;
import com.file.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeDao employeeDao;

    @Override
    public void insertEmp(Employee employee) {
        employeeDao.addEmp(employee);
    }

    @Override
    public List<Employee> findAllEmp() {
        return employeeDao.findAllEmp();
    }
}
